package com.cskaoyan.service.wx;

import com.cskaoyan.bean.wx.CartBo;
import com.cskaoyan.bean.wx.CartCheckedOutVO;
import com.cskaoyan.bean.wxbean.CartCheckedBo;
import com.cskaoyan.bean.wxbean.CartIndexVO;

/**
 * @author WeitenHong
 * @date 2020/10/6 13:56
 */


public interface CartService {
    CartIndexVO getCartIndex(Integer i);

    void cartUpdate(Integer id, Integer number);

    CartIndexVO cartDelete(Integer productId);

    CartIndexVO cartChecked(CartCheckedBo cartCheckedBo, Integer userId);

    CartCheckedOutVO CartCheckOut(Integer cartId, Integer addressId, Integer couponId, Integer grouponRulesId, Integer userId);

    Integer getGoodsCount(Integer id);

    long cartAdd(CartBo cartBo, Integer id);

    Integer fastAdd(CartBo cartBo, Integer id);
}
